#include "dialog.h"
#include "ui_dialog.h"
#include <QtDebug>
Dialog::Dialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Dialog)
{
    ui->setupUi(this);
    this->setWindowTitle("init delta z max");
}

Dialog::~Dialog()
{
    delete ui;
}

void Dialog::on_buttonBox_accepted()
{
    QVector<double> delta_z_max;
    delta_z_max.push_back(ui->doubleSpinBox_1->value());
    delta_z_max.push_back(ui->doubleSpinBox_2->value());
    delta_z_max.push_back(ui->doubleSpinBox_3->value());
    delta_z_max.push_back(ui->doubleSpinBox_4->value());
    delta_z_max.push_back(ui->doubleSpinBox_5->value());
    delta_z_max.push_back(ui->doubleSpinBox_6->value());
    delta_z_max.push_back(ui->doubleSpinBox_7->value());
    delta_z_max.push_back(ui->doubleSpinBox_8->value());
    delta_z_max.push_back(ui->doubleSpinBox_9->value());
    delta_z_max.push_back(ui->doubleSpinBox_10->value());
    delta_z_max.push_back(ui->doubleSpinBox_11->value());
    delta_z_max.push_back(ui->doubleSpinBox_12->value());
    delta_z_max.push_back(ui->doubleSpinBox_13->value());
    delta_z_max.push_back(ui->doubleSpinBox_14->value());
    emit initDeltaZMaxSignal(delta_z_max);

}
